/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.xcxAdmin.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.xcxAdmin.dao.FlexIdentDao;
import com.jeesite.modules.xcxAdmin.entity.FlexIdent;
import com.jeesite.modules.xcxAdmin.entity.ZtAdmin;

/**
 * 测试数据Service
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Service
@Transactional(readOnly = true)
public class FlexIdentService extends CrudService<FlexIdentDao, FlexIdent> {


	/**
	 * 获取单条数据
	 * 
	 * @param testData
	 * @return
	 */
	@Override
	public FlexIdent get(FlexIdent flexIdent) {
		FlexIdent entity = super.get(flexIdent);
		if (entity == null) {
			entity = new FlexIdent();
		}
		return entity;
	}

	/**
	 * 查询分页数据
	 * 
	 * @param page
	 *            分页对象
	 * @param testData
	 * @return
	 */
	@Override
	public Page<FlexIdent> findPage(Page<FlexIdent> page, FlexIdent flexIdent) {
		return super.findPage(page, flexIdent);
	}

	/**
	 * 保存数据（插入或更新）
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void save(FlexIdent flexIdent) {
		super.save(flexIdent);
	}

	/**
	 * 更新状态
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void updateStatus(FlexIdent flexIdent) {
		super.updateStatus(flexIdent);
	}

	/**
	 * 删除数据
	 * 
	 * @param testData
	 */

	@Transactional(readOnly = false)
	public void deletePhone(FlexIdent flexIdent) {
		dao.deletePhone(flexIdent);
	}

}